'use strict';

function average_uneven(collection) {

  //在这里写入代码
  var result=collection.filter(x=>x%2!=0)
  let aver=result.reduce(function(pre,cur){
    return pre+cur;
  },0)/result.length;
  return aver;
}

module.exports = average_uneven;
